#ifndef __CJSON_TO_DATA_H__
#define __CJSON_TO_DATA_H__
#include "cJSON.h"
int parse_uint8(const cJSON *obj_json, const char *key, unsigned char *value);
int parse_uint16(const cJSON *obj_json, const char *key, unsigned short *value);
int parse_uint32(const cJSON *obj_json, const char *key, unsigned int *value);
int parse_uint8_array(const cJSON *obj_json, const char *key, unsigned char *array, unsigned char array_len);
int parse_uint16_array(const cJSON *obj_json, const char *key, unsigned short *array, unsigned char array_len);
int parse_uint32_array(const cJSON *obj_json, const char *key, unsigned int *array, unsigned char array_len);

int parse_string(const cJSON *obj_json, const char *key, char *str, char strlen);
#endif
